#include <QApplication>
#include <QTranslator>
#include "downloadapplication.h"
#include "downloadobject.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QCoreApplication::setOrganizationName("QDownloader");
    QCoreApplication::setOrganizationDomain("QDownloader.com");
    QCoreApplication::setApplicationName("QDownloader");

    DownloadObject::checkTheDirectoryExist();

    QTranslator translator;
    translator.load("cn.qm");
    a.installTranslator(&translator);

    DownloadApplication w;
    w.show();
    return a.exec();
}
